
from selenium import webdriver
from selenium.webdriver.support.ui import Select
import time

driver = webdriver.Chrome()

# driver.get('https://www.baidu.com/')
driver.get('https://www.douban.com/')
# driver.get('https://www.17sucai.com/pins/demo-show?id=5926')

# driver.switch_to_frame()
# driver.switch_to.frame(driver.find_element_by_id('iframe'))
# inputTag = driver.find_element_by_id('kw')
# driver.find_element_by_xpath('//li[@class="account-tab-account"]').click()
# driver.find_element_by_id('account-form-remember').click()

# inputTag.send_keys('python')

# selectTag = Select(driver.find_element_by_class_name('nojs'))
# 选择方式
# 1.根据值来选择
# selectTag.select_by_value('JP')

# 2.根据索引来选择
# selectTag.select_by_index(2)

time.sleep(2)

# inputTag.clear()


